package com.example.springboot_logdatabase.controller;

import com.example.springboot_logdatabase.entity.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
// 原文链接：https://blog.csdn.net/qq_38650808/article/details/105998110
public class TestController {
    @Log("执行方法一")
    @GetMapping("/one")
    public void methodOne(String name){}

    @Log("执行方法二")
    @GetMapping("/two")
    public void methodTwo() throws InterruptedException {
        Thread.sleep(2000);
    }

    @Log("执行方法三")
    @GetMapping("/three")
    public void methodThree(String name,String age){}
}

